package org.rainbowinverted.charging.device.api.operation.dto.resp;

import lombok.*;
import org.rainbowinverted.charging.device.api.operation.dto.resp.gun.GunChargeInfo;
import org.rainbowinverted.charging.device.api.operation.dto.resp.gun.GunInfo;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 设备状态报告dto
 *
 * @author huaiping
 */
@Data
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@AllArgsConstructor(staticName = "of")
public class DeviceRespStatusInfoDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = -4297687434637572060L;
    /**
     * 设备编号
     */
    private Long deviceNo;
    /**
     * 枪信息
     */
    private GunInfo gunInfo;
    /**
     * 充电信息
     */
    private GunChargeInfo gunChargeInfo;
    /**
     * 电压(V)
     */
    private Integer voltage;
    /**
     * cp电压
     */
    private Integer cpVoltage;
    /**
     * 泄漏电流
     */
    private Integer leakCurrent;
    /**
     * 紧急按钮状态
     */
    private Boolean emergenceStatus;
    /**
     * 报告时间
     */
    private LocalDateTime reportTime;
}
